package com.wangp.springbootsource.startup;

import com.wangp.springbootsource.util.ColorPrintUtil;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * <pre>
 * classname FirstApplicationRunner
 * description
 * </pre>
 *
 * @author wangp
 * @date 2020/9/22 20:57
 **/
@Component
@Order(1)
public class FirstApplicationRunner implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args) throws Exception {
        ColorPrintUtil.bluePrint(">>> start up first applicationRunner <<<");
    }
}
